/*
 * Copyright (c) 2024 dragonSaberCaptain.All rights reserved.
 * 当前项目名:wisdom-parent
 * 当前模块名:common-tools
 * 当前文件的权限定名:com.wisdom.tools.constant.Constant
 * 当前文件的名称:Constant.java
 * 当前文件的类名:Constant
 * 上一次文件修改的日期时间:2024/1/19 下午1:31
 *
 */

package com.wisdom.tools.constant;

import com.wisdom.tools.system.SpringContextUtil;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
@Accessors(chain = true)
public class Constant {
    public static final String BIZ_ID = "BIZ_ID";

    public static final String SPRING_APPLICATION_NAME = SpringContextUtil.getEnvironmentProperty("`spring.application.name`");
    public static final String SERVER_PORT = SpringContextUtil.getEnvironmentProperty("server.port");
    public static final String[] SPRING_PROFILES_ACTIVES = SpringContextUtil.getProfileActive();
    public static final String SPRING_ENVIRONMENT_ACTIVES = SpringContextUtil.getEnvironmentActive();
}
